package com.example.demozmq.controller;

import java.util.ArrayList;
import java.util.List;

public class Test3 {

    public static void main(String[] args) {
        List<Integer> numbers = new ArrayList<>();
        numbers.add(1);
        numbers.add(3);
        numbers.add(6);
        numbers.add(10);
        numbers.add(15);

        for (int i = 1; i < numbers.size(); i++) {
            int current = numbers.get(i);
            int previous = numbers.get(i - 1);
            int difference = current - previous;

            System.out.println("Element " + current + " minus Element " + previous + " is: " + difference);
        }

        System.out.println(5/2);
    }
}
